/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.mzk.lidovky.articles.articlesData.errors;

/**
 *
 * @author Martin Řehánek (rehan@mzk.cz)
 */
public class UnknownGenreError implements ArticleError {

    private final String template = "Neznámý žánr '%s'";
    private final Object[] params = new Object[1];

    public UnknownGenreError(String genreStr) {
        params[0] = genreStr;
    }

    @Override
    public String getErrorMessage() {
        return String.format(template, params);
    }
}
